﻿

//重新设置导航列表节点的各个数字
function ResetBookingNavigationBillCount(userID)
{
    var postData = "{userID:" + userID + "}";
     $.ajax({
        type: "POST",
        contentType: "application/json",
        url: "../AjaxCallbackService.asmx/GetBookingNavigationBillCount",
        data: postData,
        dataType: 'json',
        success: function(result) {
            var bookingNavNum = $(window.parent.Navigation.document).find(".BookingNavNum");
            for(var i=0; i<result.d.length; i++)
            { 
                $(bookingNavNum[i]).text("(" + result.d[i] + ")");
            }
        },
        error: function(httpException) {
        alert("数据加载失败，请重试。");
        },
        timeout: 40000
    });
    
    return false;
}


